﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace System.Windows.Controls
{
    public static class ImageExtension
    {
        public static void SetUrl(this Image image, Uri uri)
        {
            System.Windows.Media.Imaging.BitmapImage bit = new System.Windows.Media.Imaging.BitmapImage(uri);
            image.Source = bit;
        }
    }
}
